package cn.tqfeiyang.springplus.system.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.springplus.framework.validation.*;
import jakarta.validation.constraints.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 参数请求类
 *
 * @author tqfeiyang
 * @since 2024-08-08
 */
@Data
public class ConfigDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "参数key不能为空", groups = WhenCreate.class)
    @Size(max = 100, message = "参数key长度不能超过100字符")
    @Schema(description = "参数key")
    private String configKey;

    @NotBlank(message = "参数名称不能为空", groups = WhenCreate.class)
    @Size(max = 100, message = "参数名称长度不能超过100字符")
    @Schema(description = "参数名称")
    private String configName;

    @Schema(description = "参数值")
    private String configValue;

    @Schema(description = "备注")
    private String remark;
}